package com.then.component.login.ui.base;

import android.databinding.Observable;
import android.databinding.ViewDataBinding;

import com.then.architecture.mvp.delegate.AppDelegate;

/**
 * Created by 42524 on 2018/1/24.
 */

public abstract class LoginModuleDelegate<VO extends Observable, D extends ViewDataBinding> extends AppDelegate<VO, D> {


    protected String getLoginErrorMsg(int errorCode) {
        return getStrRes(getRootView().getResources().getIdentifier("error_code_" + errorCode, "string",
                getRootView().getContext().getPackageName()));
    }

}
